package com.evil.application.pojo.dto.notify;

import com.evil.application.pojo.dto.CopyApplicationDTO;
import com.evil.application.pojo.entity.ApplicationInfo;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.NoArgsConstructor;

import javax.validation.constraints.NotNull;

/**
 * 复制应用提醒设置权限 请求实体
 *
 * @author liyang
 * @date 2022-08-08 00:00
 */
@Data
@NoArgsConstructor
@EqualsAndHashCode(callSuper = true)
public class CopyAppNotifySettingReqDTO extends CopyApplicationDTO {

    public CopyAppNotifySettingReqDTO(@NotNull(message = "source not null") ApplicationInfo source, @NotNull(message = "target not null") ApplicationInfo target) {
        super(source, target);
    }

    public CopyAppNotifySettingReqDTO(CopyApplicationDTO copyApplicationDTO) {
        super(copyApplicationDTO.getSource(), copyApplicationDTO.getTarget());
    }
}
